Skip to content

Conversation

@VladiKrapp-Arm
Copy link
Collaborator

The mechanism for setting the default installation directory to /install is highly dependent on the order of events in the CMakeLists.txt file. Due to recent shifts in the file this has stopped working.
The CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT check must happen immediately after the first invocation of project(...). When the llvm-project directory is included first, it is calling project() and then sets the CMAKE_INSTALL_PREFIX to the system default.

The mechanism for setting the default installation directory to
<BUILDDIR>/install is highly dependent on the order of events in the
CMakeLists.txt file. Due to recent shifts in the file this has stopped
working.
The CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT check must happen
immediately after the first invocation of project(...). When the
llvm-project directory is included first, it is calling project() and
then sets the CMAKE_INSTALL_PREFIX to the system default.
@VladiKrapp-Arm VladiKrapp-Arm force-pushed the fix_default_install_dir branch from d600372 to 332b7c1 Compare October 10, 2024 10:17
Copy link
Collaborator

@ostannard ostannard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@VladiKrapp-Arm VladiKrapp-Arm merged commit 18b561e into ARM-software:main Oct 10, 2024
1 check passed
@VladiKrapp-Arm VladiKrapp-Arm deleted the fix_default_install_dir branch October 10, 2024 11:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants